package com.situ.company.score.service;

import java.sql.SQLException;
import java.util.List;

import com.situ.company.score.dao.ScoreDao;
import com.situ.company.score.model.ScoreModel;

public class ScoreService {

    private ScoreDao dao = new ScoreDao();

    public int insert(ScoreModel model) throws ClassNotFoundException, SQLException {
        return dao.insert(model);
    }

    public int delete(ScoreModel model) throws ClassNotFoundException, SQLException {
        return dao.delete(model);
    }

    public int update(ScoreModel model) throws ClassNotFoundException, SQLException {
        return dao.update(model);
    }

    public ScoreModel selectByCode(ScoreModel model) throws ClassNotFoundException, SQLException {
        return dao.selectByCode(model);
    }

    public List<ScoreModel> selectList(ScoreModel model) throws ClassNotFoundException, SQLException {
        return dao.selectList(model);
    }

}
